package com.ruowei.modules.webSocket.repository;

import com.ruowei.common.repository.BaseRepository;
import com.ruowei.modules.webSocket.domain.Message;

import com.ruowei.modules.webSocket.domain.QMessage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Spring Data  repository for the Message entity.
 */
@Repository
public interface MessageRepository extends BaseRepository<Long, Message, QMessage> {
    Page<Message> findAllByReceiverCode(String receiverCode, Pageable pageable);
}
